import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import moment from 'moment'
import store from './vuex'
import toast from 'components/common/toast'
import VueLazyLoad from 'vue-lazyload'
import { Button, Select, Input, Switch } from 'element-ui';


Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
Vue.filter('dateFormat', (dateStr, pattern = 'YYYY-MM-DD HH:MM') => {
  return moment(dateStr).format(pattern)
})
Vue.use(toast)
Vue.use(VueLazyLoad, {
  loading: require('./assets/img/common/placeholder.png')
})


Vue.use(Button).use(Select).use(Input).use(Switch)
Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };


new Vue({
  render: h => h(App),
  router,
  store,

}).$mount('#app')









